package com.lsa.helpers;

import java.util.Comparator;

public final class IntegerComparator implements Comparator<Integer> {
	public static IntegerComparator instance() {
		return IntegerComparatorHolder.INSTANCE;
	}
	
	@Override
	public int compare(Integer o1, Integer o2) {
		return o1-o2;
	}
	
	private static class IntegerComparatorHolder{
		static final IntegerComparator INSTANCE = new IntegerComparator();
	}
	
	private IntegerComparator() {
	}
}